package com.gem.enums;

/**
 * Author: Xhy
 * CreateTime: 2022-09-17 15:31
 */
public enum CardType {

    PRIMARY_CARD(1,"初级卡牌"),
    MEDIUM_CARD(2,"中级卡牌"),
    ADVANCED_CARD(3,"高级卡牌");

    public Integer type;
    private String info;

    CardType(Integer type,String name){
        this.type = type;
        this.info = name;
    }

    public Integer getType(){

        return type;
    }
    public static String getInfo(Integer type){
        for (CardType value : values()) {
            if (value.type == type){
                return value.info;
            }
        }
        return "";
    }
}
